package cn.com.dcsgo.library.client.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 页面展示
 *
 * @author Dcsgo
 * @since 2024/9/3 10:54
 */
@Api(tags = "页面展示(view)")
@Controller
public class ViewController {
    /**
     * 登录页面
     *
     * @return 登录页面
     */
    @ApiOperation("登录页面")
    @RequestMapping( "user/login")
    public String login() {
        return "login";
    }

    @ApiOperation("图书概览页面")
    @RequestMapping("books")
    public String booksOverview(){
        return "books";
    }

    @ApiOperation("借阅记录页面")
    @RequestMapping("user/borrow/records")
    public String borrowRecords(){
        return "borrowRecords";
    }
}
